package cn.com.duiba.millionaire.center.biz.dao;

import cn.com.duiba.millionaire.center.biz.entity.MillionaireShareCodeRecordEntity;

/**
 * Created by sty on 1/19/18.
 */
public interface MillionaireShareCodeRecordDao {
    /**
     * 插入
     * @param millionaireShareCodeRecordEntity
     * @return
     */
    MillionaireShareCodeRecordEntity insert(MillionaireShareCodeRecordEntity millionaireShareCodeRecordEntity);


    /**
     * 根据分享码和用户id,appId查询
     * @param shareCode
     * @param consumerId
     * @return
     */
    MillionaireShareCodeRecordEntity findByShareCodeAndCidAndAppId(String shareCode, Long consumerId, Long appId);
}
